package com.online_exam.repository;

import com.online_exam.domain.User;
import com.online_exam.domain.other.KeyValue;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface UserMapper {
    int insert(User user);
    User selectById(Integer id);
    User selectByUsernamePassword(Map map);
    User selectByUsername(String username);
    int update(User user);


    User findByUserId(Integer id);
    List<KeyValue> findByUserName(String userName);
}
